import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';

Vue.config.productionTip = false;

// 引入wechat标题修改
import weTitle from 'vue-wechat-title';
Vue.use(weTitle);

import viewTitle from "./components/viewTitle";
Vue.component(viewTitle.name, viewTitle);

import viewCrumb from "./components/viewCrumb";
Vue.component(viewCrumb.name, viewCrumb);

import viewTable from "./components/viewTable";
Vue.component(viewTable.name, viewTable);

// 引入element
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
ElementUI.Dialog.props.closeOnClickModal.default = false;
Vue.use(ElementUI);

// 引入复制
import VueClipboard from 'vue-clipboard2'
Vue.use(VueClipboard)

// 引入axios
import axios from './assets/js/ajax';
Vue.prototype.$axios = axios;

// 引入工具库
import utils from './assets/js/utils';
Vue.prototype.$utils = utils;

// 引入权限表
import roles from './assets/config/roles';
Vue.prototype.$roles = roles;

import ECharts from "vue-echarts";
import "echarts/lib/chart/pie";
import "echarts/lib/component/tooltip";
Vue.component("chart", ECharts);
Vue.prototype.$echarts = ECharts;

// 引入全局样式
import 'remixicon/fonts/remixicon.css';
import './assets/css/index.less';

new Vue({
	router,
	store,
	render: (h) => h(App),
}).$mount('#app');
